import SwiftUI

struct XX: View {
    @StateObject private var timerViewModel = TimerViewModel()
    
    var body: some View {
        VStack {
            Text(timerViewModel.timeString)
                .font(.largeTitle)
                .padding()
            
            HStack {
                Button("Start") {
                    timerViewModel.start()
                }
                .padding()
                
                Button("Stop") {
                    timerViewModel.stop()
                }
                .padding()
            }
        }
    }
}
    
#Preview {
    XX()
}
